import axios from 'axios'
export default {
  namespaced: true,
  state: {
    user_phone: '',
    user_password: '',
    confirm_password: '',
    user_name: ''
  },
  getters: {},
  mutations: {

  },
  actions: {
    customer_regist(context) {
      //http://localhost:8001/api/regist
      axios.post('/api/regist', {
          'user_phone': context.state.user_phone,
          'user_password': context.state.user_password,
          'user_name': context.state.user_name
        }).then(function(response) {
          console.log(response);
        })
        .catch(function(error) {
          console.log(error);
        });
    }
  }
}
